package net.bingosoft.common.data.idgenerator;

import net.bingosoft.common.data.BaseDao;

/**
 * 2008-3-27 下午12:36:14
 * Author:yangdongyu(yangdy@bingosoft.net)
 * ReadMe:通过Sequence生成对象的Id
 * ChangeLog:
 */
class SequenceGenerator implements IdGenerator {
	private BaseDao dao;
	SequenceGenerator(BaseDao dao){
		this.dao = dao;
	}


	/* (non-Javadoc)
	 * @see net.bingosoft.common.data.IdGenerator#generateId()
	 */
	public Object generateId() {
		return dao.getSequence();
	}

}
